﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
   
namespace MyGIS
    {
        // 根对象
        public class ApiResponse
        {
            public int status { get; set; }
            public Result result { get; set; }
        }

        public class Result
        {
            public Location location { get; set; }
            public RealtimeAqi realtimeAqi { get; set; }
        }

        public class Location
        {
            public string areacode { get; set; }
            public string name { get; set; }
            public string country { get; set; }
            public string path { get; set; }
        }

        public class RealtimeAqi
        {
            public int aqi { get; set; }
            public string aqi_level { get; set; }
            public double pm10 { get; set; }
            public double pm25 { get; set; }
            public double no2 { get; set; }
            public double so2 { get; set; }
            public double co { get; set; }
            public double o3 { get; set; }
            public string pollutant { get; set; }
            public string data_time { get; set; }
            public List<AirStation> stations { get; set; }
        }

        public class AirStation
        {
            public string stationId { get; set; }
            public string name { get; set; }
            public double lon { get; set; }
            public double lat { get; set; }
            public int aqi { get; set; }
            public string aqi_level { get; set; }
            public double pm10 { get; set; }
            public double pm25 { get; set; }
            public double no2 { get; set; }
            public double so2 { get; set; }
            public double co { get; set; }
            public double o3 { get; set; }
            public string pollutant { get; set; }
        }
}



